package com.example.flow.dao;

import com.example.flow.dao.model.FlowProcess;

/**
 * @author tangaq
 * 2023/6/15
 */
public interface FlowProcessDao {
    FlowProcess findByProcessId(String processId);

    Integer getLatestProcessVersionByType(String processType);

    FlowProcess findLatestByProcessType(String processType);

    void updateUnUseStateByProcessType(String processType);

    void updateUnUseStateByProcessId(String processId);

    void deleteByProcessId(String processId);

    void insert(FlowProcess process);
}
